package com.ypay.demo.wechat;

import android.app.Application;

import com.ypay.apppay.ServiceFactory;
import com.yzhn.demo.BuildConfig;

/**
 * Created on 2018-11-30  10:55
 * Description:
 *
 * @author
 */
public class TApplication extends Application {

    private static TApplication instance = null;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        ServiceFactory.init(this,true,BuildConfig.JAVA_SERVER_URL);

    }



    public static TApplication getInstance() {
        if (null == instance) {
            instance = new TApplication();
        }
        return instance;
    }
}
